package com.java46.admin.base.exception;
/**
 * @ClassName: BusinessException 
 * @Description: 异常处理实体
 * @author: zuxia
 * @date: 2018年7月4日 下午2:45:26
 */
public class BusinessException extends RuntimeException {

	/** @Fields serialVersionUID : 序列化ID   **/
	private static final long serialVersionUID = 5992214339126035383L;
	//异常信息通用errorMessage封装
	private String errorMessage;

	public BusinessException(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
	public BusinessException(String errorMessage, Throwable e) {
		super(e);
		this.errorMessage = errorMessage;
	}
	
	public String getErrorMessage() {
		return errorMessage;
	}
}
